<%@ taglib uri="/WEB-INF/tld/tag.tld" prefix="tag" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript">
$('.dropdown-toggle').dropdown();
</script>
<div id="topo" class="topo">
	<div class="navbar navbar-default navbar-fixed-top" role="navigation">
		<div class="recepcao col-sm-6">
			<ul>
				<li class="dropdown">
					<a href="#" data-toggle="dropdown" class="dropdown-toggle"><span class="glyphicon glyphicon-chevron-down"></span><span class="glyphicon glyphicon-user"></span>
					</a>
					<ul class="dropdown-menu">
						<li><a href='<tag:enderecoSite restrito="true"/>usuario-form.do?id=${usuarioLogado.id }'>Editar conta</a></li>
						<li><a href="#">Teste</a></li>
						<li><a href="#">Teste</a></li>
						<li><a href="<tag:enderecoSite/>deslogar.do">Sair</a></li>
					</ul>
				</li>
			</ul>
		<span class="nome-usuario"><c:out value="${usuarioLogado.nome }" /></span>
		</div>
		<div class=" col-sm-2 navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
				<span class="sr-only">Toggle navigation</span> <span
					class="icon-bar"></span> <span class="icon-bar"></span> <span
					class="icon-bar"></span>
			</button>
		</div>
		<div class=" col-sm-6 collapse navbar-collapse navbar-ex1-collapse">
			<ul class="nav navbar-nav pull-right">
				<li><a href="home" class="navbar-brand">Principal</a></li>
				<li><a href="usuarios-lista">Usu&aacute;rios</a></li>
				<li><a href="historico">Hist&oacute;rico</a></li>
			</ul>
		</div>
	</div>
</div>


<script type="text/javascript">

/* 
function supports_html5_storage() {
	try {
		return 'localStorage' in window && window['localStorage'] !== null;
	} catch (e) {
		return false;
	}
}


var horas = new Date().getHours();
console.log(horas)
$("#recepcao").text("Bem vindo");
if (0 <= horas && horas < 12) {
	$("#recepcao").text("Bom dia");
}
if (12 <= horas && horas < 17) {
	$("#recepcao").text("Boa tarde");
}
if (17 <= horas && horas < 24) {
	$("#recepcao").text("Boa noite");
}




function pegarScroll(){
return $(document).scrollTop();
}
 */

</script>